package com.eobard.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: Eobard Gu
 * @Date: 2025-08-21
 * @Description: web配置文件
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

    //增加静态页面访问
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/fronted/**")
                .addResourceLocations("classpath:/fronted/");
    }
}
